﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.ReportSource;

namespace SalonManager
{
    public partial class MainReport : Form
    {
        ReportDocument _rpt;
        public MainReport(ReportDocument rpt)
        {
            InitializeComponent();
            _rpt = rpt;
        }

        private void MainReport_Load(object sender, EventArgs e)
        {

            //this.reportViewer1.RefreshReport();
            crystalReportViewer1.ReportSource = _rpt;
            crystalReportViewer1.Refresh(); 
        }
    }
}
